﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Wu.MyBlog.Model.Models;

namespace Wu.MyBlog.Model.Maps
{

    public class sysUserInfoMap:EntityTypeConfiguration<sysUserInfo>
    {
        public sysUserInfoMap()
        {
            //设置为主键自增
            this.HasKey(u => u.uID);
            this.Property(u => u.uLoginName).HasMaxLength(60);
            this.Property(u => u.uLoginPWD).HasMaxLength(60);
            this.Property(u => u.uRealName).HasMaxLength(60);
        }
    }
}
